package com.subfg.common.entity.genter.zlog;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * sub_action_device
 * @author 
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(value=JsonInclude.Include.NON_NULL)
public class ZlogRequestModel implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "客户端请求日志id")
    private Integer actionId;
    @ApiModelProperty(value = "用户id")
    private  String userId;
    @ApiModelProperty(value = "用户携带的token令牌")
    private String token;
    @ApiModelProperty(value = "包名 项目区分")
    private String pageName;
    @ApiModelProperty(value = "用户设备id")
    private String userDeviceId;
    @ApiModelProperty(value = "系统版本信息")
    private String osVersion;
    @ApiModelProperty(value = "使用什么设备进行请求")
    private String requestMethod;
    @ApiModelProperty(value = "使用什么语言")
    private String language;
    @ApiModelProperty(value = "请求接口")
    private String uri;
    @ApiModelProperty(value = "操作名称")
    private String actionName;
    @ApiModelProperty(value = "请求数据")
    private String param;
    @ApiModelProperty(value = "返回数据")
    private String resultParam;
    @ApiModelProperty(value = " 1.成功 2.失败")
    private int actionStatus;
    @ApiModelProperty(value = "错误说明")
    private String message;
    @ApiModelProperty(value = "用户请求IP地址")
    private String userIp;
    @ApiModelProperty(value = "请求时用户地址")
    private String ipRegion;

    @ApiModelProperty(value = "请求时间")
    private Long createTime;
    @ApiModelProperty(value = "请求耗时")
    private Long timeConsuming;
}